Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equeue chain, add documentation of using equeue_destroy #11491

Merged
merged 2 commits into from
Sep 27, 2019

Conversation

Tharazi97
Copy link
Contributor

@Tharazi97 Tharazi97 commented Sep 16, 2019

Description

If queues are chained, it is needed to unchain them first, before calling destroy, or call the destroy function on queues in order that chained queues are destroyed first. Destroying queues in wrong order would result in errors or other program malfunctions.
Fixes: #11482

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@maciejbocianski @jamesbeyond @kimlep01 @geky @kjbracey-arm

Release Notes

Changed the order of destroying queues because it is needed to destroy
queues in specified order when they are chained.
@ciarmcom
Copy link
Member

@Tharazi97, thank you for your changes.
@maciejbocianski @geky @kimlep01 @jamesbeyond @kjbracey-arm @ARMmbed/mbed-os-core @ARMmbed/mbed-os-test @ARMmbed/mbed-os-maintainers please review.

Copy link

@kimlep01 kimlep01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the Valgrind error.

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 18, 2019

CI started meanwhile

@mbed-ci
Copy link

mbed-ci commented Sep 18, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Valgrind: 'Invalid read of size 1' in events-equeue unit test
7 participants